<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>添加设备</title>
    <meta name="viewport" content="width=device-width,initial-scale=1.5,maximum-scale=1.0,
    minimum-scale=1.0,user-scalable=no">
    <!--<link rel="stylesheet" href="mui-master/dist/css/mui.css">-->
    <script src="https://cdn.bootcss.com/zepto/1.0rc1/zepto.min.js"></script>
</head>
<style>

    @media only screen and (max-width: 1080px), only screen and (max-device-width:1080px) {
        html,body {
            font-size:46.08px;
        }
    }
    @media only screen and (max-width: 960px), only screen and (max-device-width:960px) {
        html,body {
            font-size:40.96px;
        }
    }
    @media only screen and (max-width: 800px), only screen and (max-device-width:800px) {
        html,body {
            font-size:34.13333333333333px;
        }
    }
    @media only screen and (max-width: 720px), only screen and (max-device-width:720px) {
        html,body {
            font-size:30.72px;
        }
    }
    @media only screen and (max-width: 640px), only screen and (max-device-width:640px) {
        html,body {
            font-size:27.30666666666667px;
        }
    }
    @media only screen and (max-width: 600px), only screen and (max-device-width:600px) {
        html,body {
            font-size:25.6px;
        }
    }
    @media only screen and (max-width: 540px), only screen and (max-device-width:540px) {
        html,body {
            font-size:23.04px;
        }
    }
    @media only screen and (max-width: 480px), only screen and (max-device-width:480px) {
        html,body {
            font-size:20.48px;
        }
    }
    @media only screen and (max-width: 414px), only screen and (max-device-width:414px) {
        html,body {
            font-size:17.664px;
        }
    }
    @media only screen and (max-width: 400px), only screen and (max-device-width:400px) {
        html,body {
            font-size:17.066666666666666px;
        }
    }
    @media only screen and (max-width: 375px), only screen and (max-device-width:375px) {
        html,body {
            font-size:16px;
        }
    }
    @media only screen and (max-width: 360px), only screen and (max-device-width:360px) {
        html,body {
            font-size:15.36px;
        }
    }
    @media only screen and (max-width: 320px), only screen and (max-device-width:320px) {
        html,body {
            font-size:13.653333333333334px;
        }
    }
    @media only screen and (max-width: 240px), only screen and (max-device-width:240px) {
        html,body {
            font-size:10.24px;
        }
    }
    *{
        padding: 0px;
        margin: 0px;
        box-sizing: border-box;
    }
    body{
        background:rgba(255,255,255,1);
    }
    .air_conditioner{
        width: 100%;
        height: 4.1875rem;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 5.6875rem;
    }
    .air_conditioner_img{
        width: 10rem;
        height: 4.1875rem ;
    }
    .explain{
        width: 100%;
        margin-top: 4.5rem;
    }
    .explain .connect{
        width: 12.4375rem;
        margin: 0 auto;
        font-size:1rem;
        font-family:SourceHanSansCN-Normal;
        font-weight:400;
        color:rgba(40,40,40,1);
        line-height:1.5625rem;
        text-align: center;
    }
    .explain .equipment{
        width: 12.4375rem;
        margin: 0 auto;
        font-size:1rem;
        font-family:SourceHanSansCN-Normal;
        font-weight:400;
        color:rgba(40,40,40,1);
        line-height:1.5625rem;
        text-align: center;
    }
    .confirm{
        width: 100%;
        text-align: center;
    }
    .confirm .checkbox{
        width: 0.875rem;
        height: 0.875rem;
        margin-top: 7.5rem;
        border:2px solid rgba(202,227,232,1);
        border-radius: 14px;
    }
    .confirm label{
        color: #282828;
        font-size: 1rem;
        margin-left: 0.0625rem;
    }
    .next_step{
        width: 100%;
        height: 3rem;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 0.75rem;
    }
    .next_step .btn{
        width: 21.1875rem;
        height: 3rem;
        background-color: #1E9D8A;
        font-size: 1rem;
        border: 0;
        outline: none;
    }
</style>
<body>
<div class="air_conditioner">
    <img class="air_conditioner_img" src="image/air_conditioner_img@3x.png" alt="">
</div>
<!--说明文字-->
<div class="explain">
    <div class="connect">接通电源，遥控器设置后，</div>
    <div class="equipment">确认设备进入配网模式</div>
</div>
<!--指示灯模块-->
<div class="confirm">
        <input  class="checkbox" type="radio" name="ra"  />
    <label>
        我确认指示灯在闪烁
    </label>
</div>
<div class="next_step">
    <button class="btn">下一步</button>
</div>
<!--<script src="mui-master/dist/js/mui.js"></script>-->
<script>
console.log(find('input:radio:checked'))
    $(".btn").click(function () {
        var isB = $('.checkbox').prop("checked");
        console.log("isB",isB);
        if (isB == true){
            console.log("点击了")
            if (/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)) {  //判断iPhone|iPad|iPod|iOS 
                window.webkit.messageHandlers.confirmClick.postMessage("true");
            } else if (/(Android)/i.test(navigator.userAgent)) {   //判断Android//alert(navigator.userAgent);
                window.android.confirmClick("true");
            }
        } else {
            if (/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)) {  //判断iPhone|iPad|iPod|iOS 
                window.webkit.messageHandlers.confirmClick.postMessage("false");
            } else if (/(Android)/i.test(navigator.userAgent)) {   //判断Android//alert(navigator.userAgent);
                window.android.confirmClick("false");
            }
        }
    })


</script>
</body>
</html>